package com.junzhiit.nengji.cms.feign.agent;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.junzhiit.nengji.cms.feign.agent.fallback.AgentFeignFallback;
import com.intranet.transport.object.ResultTO;

@FeignClient(value = "agent-cms", path="/agent-cms", fallbackFactory = AgentFeignFallback.class)
public interface AgentFeignService {
	
	/**
	 * 	取消/激活 代理商账号
	 * @param systemId 代理商信息表id
	 * @param status
	 * @return
	 */
	@RequestMapping(value = "/intranet/agent/switchActivationStatus", method = RequestMethod.PUT)
	ResultTO switchActivationStatus(@RequestParam("id") String systemId, @RequestParam("status") int status);
}
